home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / audit.h < prev    next >
C/C++ Source or Header  |  1999-12-16  |  2KB  |  52 lines

  1.  
  2. #ifndef AUDIT_H
  3. #define AUDIT_H
  4.  
  5. /* return values from VerifyRomSet and VerifySampleSet */
  6. #define CORRECT           0
  7. #define NOTFOUND          1
  8. #define INCORRECT         2
  9. #define CLONE_NOTFOUND    3
  10. #define BEST_AVAILABLE    4
  11.  
  12. /* rom status values for tAuditRecord.status */
  13. #define AUD_ROM_GOOD        0x00000001
  14. #define AUD_ROM_NEED_REDUMP    0x00000002
  15. #define AUD_ROM_NOT_FOUND    0x00000004
  16. #define AUD_NOT_AVAILABLE    0x00000008
  17. #define AUD_BAD_CHECKSUM    0x00000010
  18. #define AUD_MEM_ERROR        0x00000020
  19. #define AUD_LENGTH_MISMATCH    0x00000040
  20. #define AUD_ROM_NEED_DUMP    0x00000080
  21.  
  22. #define AUD_MAX_ROMS        100    /* maximum roms per driver */
  23. #define AUD_MAX_SAMPLES        200    /* maximum samples per driver */
  24.  
  25.  
  26. typedef struct
  27. {
  28.     char rom[20];                /* name of rom file */
  29.     unsigned int explength;        /* expected length of rom file */
  30.     unsigned int length;        /* actual length of rom file */
  31.     unsigned int expchecksum;    /* expected checksum of rom file */
  32.     unsigned int checksum;        /* actual checksum of rom file */
  33.     int status;                    /* status of rom file */
  34. } tAuditRecord;
  35.  
  36. typedef struct
  37. {
  38.     char    name[20];        /* name of missing sample file */
  39. } tMissingSample;
  40.  
  41. typedef void (CLIB_DECL *verify_printf_proc)(char *fmt,...);
  42.  
  43. int AuditRomSet (int game, tAuditRecord **audit);
  44. int VerifyRomSet(int game,verify_printf_proc verify_printf);
  45. int AuditSampleSet (int game, tMissingSample **audit);
  46. int VerifySampleSet(int game,verify_printf_proc verify_printf);
  47. int RomInSet (const struct GameDriver *gamedrv, unsigned int crc);
  48. int RomsetMissing (int game);
  49.  
  50.  
  51. #endif
  52.